<#macro page pm>

	<div class="my_newlayerpage">
		 <div id="pageinit"></div>
    </div>
    
    <script>
	//完整功能
	
        layui.use(['laypage'], function(){
           
            var form = laypage = layui.laypage;
        
			laypage.render({
			    elem: 'pageinit'
			    ,count: ${pm.total}
			    ,curr:${pm.currentPage}
			    ,limit:10
			    ,layout: ['count', 'prev', 'page', 'next',  'skip']
			    ,jump: function(obj,first){
			    		if(!first){
				      location.href=location.href="${pm.url}"+obj.curr+"&pageSize="+obj.limit;
				    }
			    }
			 });
        });
	
	  
	</script>
    
</#macro> 